package cn.tedu.suppermemory.mapper;


import cn.tedu.suppermemory.pojo.entity.Score;
import cn.tedu.suppermemory.pojo.vo.ScoreListItemVO;
import cn.tedu.suppermemory.pojo.vo.ScoreStandardVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ScoreMapper {

    int insert(Score score);

    int insertBatch(List<Score> scores);

    int deleteById(Long id);

    int deleteByIds(Long[] ids);

    int update(Score score);

    int count();

    int countByName(Long classId);

    int countByNameAndNotId(@Param("id") Long id, @Param("classId") Long classId);

    ScoreStandardVO getStandardById(Long id);

    List<ScoreListItemVO> list();

}
